<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.web.common.exceptionhandling.service.ExceptionHandlingContrib.override">

  <require>org.nuxeo.ecm.platform.web.common.exceptionhandling.service.ExceptionHandlingContrib</require>

  <extension point="errorhandlers" target="org.nuxeo.ecm.platform.web.common.exceptionhandling.service.ExceptionHandlingService">
    <errorHandlers bundle="messages" defaultpage="/nuxeo_error.jsp" loggerName="nuxeo-error-log">
      <handlers>
        <handler code="404" error=".*DocumentNotFoundException" message="Error.Document.Not.Found"/>
        <handler code="403" error=".*SecurityException" message="Error.Insuffisant.Rights" page="/nuxeo_error_security.jsp"/>
      </handlers>
    </errorHandlers>
  </extension>

</component>
